﻿<link href="{$_s.theme_dir}form.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="{$_s.js_dir}jQuery/jquery.jgrowl.min.css" />
<link rel="stylesheet" type="text/css" href="{$_s.js_dir}jQuery/poshy/tip-yellow/tip-yellow.css" />
<link href="{$_s.js_dir}jQuery/jquery_ui/{$_style._jquery_ui}" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="JavaScript" charset="utf-8" src="{$_s.js_dir}jQuery/jquery-ui-1.10.2.custom.min.js"></script>
<script type="text/javascript" language="JavaScript" charset="utf-8" src="{$_s.js_dir}jQuery/jquery.jgrowl.min.js"></script>
<script type="text/javascript" language="JavaScript" charset="utf-8" src="{$_s.js_dir}colorbox.js"></script>
<script type="text/javascript" language="JavaScript" charset="utf-8" src="{$_s.js_dir}func.js"></script>

<div id="index" style="margin-left:10px;"> 
	<img src="{$_s.img_dir}logo.png" border="0" />
	<b>欢迎使用{$l.site_name}后台管理系统^_^</b>
</div>

<div class="space20"><!-- 间隔 --></div>

<ul class="specification">
	
	<li><table border="0" align="center" cellpadding="0" cellspacing="1" class="data_form" style="width:590px;">
		<caption>
		<em><a href="./m.php?frm=order&mdl=order&do=list">查看全部</a></em>订单统计
		</caption>
		<thead>
			<tr>
				<th style="width:55px;">新订单</th>
				<th style="width:55px;">已确认</th>
				<th style="width:55px;">付款中</th>
				<th style="width:55px;">已付款</th>
				<th style="width:55px;">已配货</th>
				<th style="width:55px;">已发货</th>
				<th style="width:55px;">已收货</th>
				<th>已评价</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td title="未确认的订单" class="poshytip"><a href="./m.php?frm=order&mdl=order&do=list&state=0&payment_state=0&delivery_state=0" class="cnum">{$order_stats.new}</a></td>
				<td title="已确认，未付款的订单" class="poshytip"><a href="./m.php?frm=order&mdl=order&do=list&state=1&payment_state=0&delivery_state=0" class="cnum">{$order_stats.confirmed}</a></td>
				<td title="付款中的订单" class="poshytip"><a href="./m.php?frm=order&mdl=order&do=list&state=1&payment_state=1&delivery_state=0" class="cnum">{$order_stats.paying}</a></td>
				<td title="已付款，未配货的订单" class="poshytip"><a href="./m.php?frm=order&mdl=order&do=list&state=1&payment_state=2&delivery_state=0" class="cnum">{$order_stats.paid}</a></td>
				<td title="已配货，未发货的订单<br />（因为有货到付款，所以，可以未付款）" class="poshytip"><a href="./m.php?frm=order&mdl=order&do=list&state=1&delivery_state=1" class="cnum">{$order_stats.distribution}</a></td>
				<td title="已发货，未收货的订单<br />（因为有货到付款，所以，可以未付款）" class="poshytip"><a href="./m.php?frm=order&mdl=order&do=list&state=1&delivery_state=2" class="cnum">{$order_stats.sent}</a></td>
				<td title="已收货，未评价的订单<br />（因为有货到付款，所以，可以未付款）" class="poshytip"><a href="./m.php?frm=order&mdl=order&do=list&state=2&delivery_state=3" class="cnum">{$order_stats.receive}</a></td>
				<td title="已付款，已收货，已评价的订单" class="poshytip"><a href="./m.php?frm=order&mdl=order&do=list&state=3&payment_state=2&delivery_state=3" class="cnum">{$order_stats.commented}</a></td>
			</tr>
			
		</tbody>
		<tfoot id="cmd">
			<tr>
				<td colspan="8"></td>
			</tr>
		</tfoot>
	</table>

	<div class="space20"><!-- 间隔 --></div>

	<table border="0" align="center" cellpadding="0" cellspacing="1" class="data_form" style="width:590px;">
		<caption>
		<em><a href="./m.php?frm=order&mdl=lack&do=list">查看全部</a></em>缺货商品（最新20个）
		</caption>
		<thead>
			<tr>
				<th style="width:92px;">商品</th>
				<th>名称</th>
				<th style="width:200px;">规格</th>
			</tr>
		</thead>
		<tbody>
			{foreach from=$lacklist item=row}
			<tr>
				<td><a href="{$row.url}" title="{$row.goodsinfo.name}<br />
--------<br />
重量：{$row.goodsinfo.fweight}{$row.goodsinfo.weightunit}<br />
单价：￥{$row.goodsinfo.price}" class="poshytip" target="_blank"><img src="{$_s.up_dir}thumb/92_70/{$row.goodsinfo.cover}" width="92" height="70" onload="drawImage(this, 92, 70);" /></a></td>
				<td><a href="./m.php?frm=goods&mdl=goods&do=edit&id={$row.goodsid}" title="编辑商品" class="poshytip">{$row.goodsinfo.name}</a></td>
				<td>{$row.specinfo.name}：{$row.specname}</td>
			</tr>
			{/foreach}
		</tbody>
		<tfoot id="cmd">
			<tr>
				<td colspan="3"></td>
			</tr>
		</tfoot>
	</table>

	<div class="space20"><!-- 间隔 --></div>

	{if $noticelist}
	<table border="0" align="center" cellpadding="0" cellspacing="1" class="data_form" style="width:590px;">
		<caption>
		Xer345.COM 资讯动态
		</caption>
		<thead>
			<tr>
				<th>标题/摘要</th>
				<td style="width:80px;">日期/时间</td>
			</tr>
		</thead>
		<tbody>
			{foreach from=$noticelist item=row}
			<tr>
				<td><a href="{$row.url}" target="_blank">{$row.title}</a><br />
					{$row.summary}</td>
				<td>{$row.updatetime}</td>
			</tr>
			{/foreach}
		</tbody>
		<tfoot id="cmd">
			<tr>
				<td colspan="2"></td>
			</tr>
		</tfoot>
	</table>
	{/if}

</li>

	<li><table border="0" align="center" cellpadding="0" cellspacing="1" class="data_form" style="width:590px;">
		<caption>
		<em><a href="./m.php?frm=goods&mdl=goods&do=list">查看全部</a></em>销售排行榜（前100）
		</caption>
		<thead>
			<tr>
				<th style="width:92px;">商品</th>
				<th>名称</th>
				<th style="width:50px;">销量</th>
			</tr>
		</thead>
		<tbody>
			{foreach from=$salelist item=row}
			<tr>
				<td><a href="{$row.url}" title="{$row.name}" target="_blank"><img src="{$_s.up_dir}thumb/92_70/{$row.cover}" /></a></td>
				<td><a href="./m.php?frm=goods&mdl=goods&do=edit&id={$row.goodsid}" title="编辑商品">{$row.name}</a></td>
				<td>{$row.sales}</td>
			</tr>
			{/foreach}			
		</tbody>
		<tfoot id="cmd">
			<tr>
				<td colspan="3"></td>
			</tr>
		</tfoot>
	</table></li>
</ul>

<script type="text/javascript" language="JavaScript" charset="utf-8" src="{$_s.js_dir}jQuery/jquery.poshytip.min.js"></script>
<script type="text/javascript" language="JavaScript" charset="utf-8">
<!--
{literal}
jQuery(function($){
	// PoshyTip 提示插件
	$('.poshytip[title]').each(function(index, domEle){
		var opts = {
			nouse					: true
			// ,content				: ''
			// ,className			: ''
			,bgImageFrameSize		: 20
			,showTimeout			: 0
			,hideTimeout			: 100
			,timeOnScreen			: 0
			,showOn					: 'hover'
			,liveEvents				: true
			,alignTo				: 'cursor'
			,alignX					: 'right'
			,alignY					: 'top'
			,allowTipHover			: true
			,followCursor			: true
			,fade					: true
			,slide					: true
			,slideOffset			: 8
			,showAniDuration		: 100
			,hideAniDuration		: 200
			,offsetY				: 20
			// ,offsetX				: 0
		};
		opts['className'] = 'tip-yellow';
		$(this).poshytip(opts);
	});	
});
{/literal}
//-->
</script>